package cn.edu.scau.sec.rw.model.pro_manage.threadExe;

import cn.edu.scau.sec.rw.model.disk_file.file.ExeFile;
import cn.edu.scau.sec.rw.model.pro_manage.Process;
import cn.edu.scau.sec.rw.model.pro_manage.pro_dispatch.Dispatch;

/**
 *
 */
public class SelectProThread extends Thread {
    @Override
    public void run() {
        while (true) {
            if (Process.getInitProcesses().size() != 0) {
                Process.getReadyProcesses().add(Process.getInitProcesses().get(0));
                Process.getInitProcesses().remove(0);
            }
        }
    }

    /* private ExeFile exeFile;

    public SelectProThread(ExeFile exeFile) {
        this.exeFile = exeFile;
    }

    public ExeFile getExeFile() {
        return exeFile;
    }

    public void setExeFile(ExeFile exeFile) {
        this.exeFile = exeFile;
    }*/


}
